package avicit.bdp.dcs.semistructure.dao;

import avicit.bdp.common.base.BaseDAO;
import avicit.bdp.dcs.semistructure.dto.TemplateDTO;
import com.github.pagehelper.Page;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TemplateDao extends BaseDAO<TemplateDTO> {

    Page<TemplateDTO> getTemplateList(String templateName, String orderField, String orderType, boolean isFilter);

    List<TemplateDTO> getTemplateListByName(String templateName);

    List<TemplateDTO> getTemplateListByCatalogPath(String catalogPath);

    List<TemplateDTO> getTemplateDTOAndFilePathByCatalogPath(String catalogPath);
}
